package layui_mybatis.entity;

import java.util.List;

/**
 * Created by zhangzheng on 2020/8/19.
 */
public class Province {
    private Integer id;
    private String pname;
    private Province parent;
    private List<Province> children;

    public Province(Integer id, String pname, Province parent, List<Province> children) {
        this.id = id;
        this.pname = pname;
        this.parent = parent;
        this.children = children;
    }

    @Override
    public String toString() {
        return "Province{" +
                "id=" + id +
                ", pname='" + pname + '\'' +
                ", parent=" + parent +
                ", children=" + children +
                '}';
    }

    public Province() {
    }


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getPname() {
        return pname;
    }

    public void setPname(String pname) {
        this.pname = pname;
    }

    public Province getParent() {
        return parent;
    }

    public void setParent(Province parent) {
        this.parent = parent;
    }


    public List<Province> getChildren() {
        return children;
    }

    public void setChildren(List<Province> children) {
        this.children = children;
    }
}
